import Index from "../pages/Index.vue";
import TeamView from "../pages/TeamView.vue";
import UserView from "../pages/UserView.vue";
import SearchView from "../pages/SearchView.vue";
import UserEditView from "../pages/UserEditView.vue";
import SearchResultView from "../pages/SearchResultView.vue";
import UserLoginView from "../pages/UserLoginView.vue";
import TeamCreateView from "../pages/TeamCreateView.vue";
import TeamUpdateView from "../pages/TeamUpdateView.vue";
import UserUpdateView from "../pages/UserUpdateView.vue";
import UserTeamCreateView from "../pages/UserTeamCreateView.vue";
import UserTeamJoinView from "../pages/UserTeamJoinView.vue";

const routes = [
    { path: '/', title: '主页', component: Index },
    { path: '/search', title: '搜索用户', component: SearchView },
    { path: '/team', title: '队伍', component: TeamView },
    { path: '/team/create', title: '创建队伍', component: TeamCreateView },
    { path: '/team/update', title: '更新队伍', component: TeamUpdateView },
    { path: '/user', title: '个人信息', component: UserView },
    { path: '/user/list', title: '搜索结果', component: SearchResultView },
    { path: '/user/edit', title: '编辑信息', component: UserEditView },
    { path: '/user/login', title: '登录', component: UserLoginView },
    { path: '/user/update', title: '用户信息', component: UserUpdateView },
    { path: '/user/team/create', title: '我创建的队伍', component: UserTeamCreateView },
    { path: '/user/team/join', title: '我加入的队伍', component: UserTeamJoinView },
]

export default routes;
